package com.wsoft.cms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 公告类型表
 * </p>
 *
 * @author juiet
 * @since 2024年11月27日 10:39:16
 */
@Getter
@Setter
@TableName("cms_category")
@Schema(name = "CmsCategoryEntity", description = "公告类型表")
public class CmsCategoryEntity extends BaseEntity {

    @Schema(description = "编码")
    @TableField("code")
    private String code;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "级别")
    @TableField("level")
    private Integer level;

    @Schema(description = "父类型")
    @TableField("pa_id")
    private Long paId;

    @Schema(description = "启用标识")
    @TableField("enable_flag")
    private Integer enableFlag;

    @Schema(description = "是否启用流程")
    @TableField("bpm_flag")
    private Integer bpmFlag;

    @Schema(description = "是否自定义")
    @TableField("bpm_self_flag")
    private Integer bpmSelfFlag;

    @Schema(description = "如果启用流程，默认的流程")
    @TableField("business_code")
    private String businessCode;

    @Schema(description = "排序")
    @TableField("sort")
    private Integer sort;
}
